package top.jiangqiang.qianyi.business.service;

import top.jiangqiang.qianyi.business.model.request.*;
import top.jiangqiang.qianyi.business.model.response.AdminUserDetailResponse;
import top.jiangqiang.qianyi.business.model.response.AdminUserListResponse;
import top.jiangqiang.qianyi.business.model.response.AdminUserPageResponse;
import top.jiangqiang.qianyi.common.base.model.response.PageResult;
import top.jiangqiang.qianyi.common.base.model.response.Result;
import top.jiangqiang.qianyi.common.base.service.BaseService;
import top.jiangqiang.qianyi.data.model.entity.AdminUser;
import top.jiangqiang.qianyi.data.service.AdminUserDbService;

import java.util.List;

/**
 * <p>
 * 后台用户账号 服务类
 * </p>
 *
 * @author JiangQiang
 * @since 2024-06-03
 */
public interface AdminUserService extends BaseService<AdminUserDbService, AdminUser> {

    Result<PageResult<AdminUserPageResponse>> page(AdminUserPageRequest request);

    Result<List<AdminUserListResponse>> list(AdminUserListRequest request);

    Result<Void> add(AdminUserSaveRequest request);

    Result<Void> update(AdminUserUpdateRequest request);

    Result<AdminUserDetailResponse> detail(Long id);

    Result<Void> delete(Long id);

    Result<String> login(AdminUserLoginRequest loginRequest);
}
